import request from '@/utils/processRequest';

// 获取表头
export function getHeader(data) {
  return request({
    url: '/xProduce/header',
    method: 'post',
    data
  });
}
export function getData(data) {
  return request({
    url: '/xProduce/data',
    method: 'post',
    data
  });
}

// 删除
export function deleteIncome(params) {
  return request({
    url: `/income/delete/${params}`,
    method: 'get'
  });
}

export function cmmonMenthodIncome(url, data) {
  return request({
    url: url,
    method: 'post',
    data
  });
}

// 下载
export function exportExcel(data) {
  return request({
    url: '/xProduce/exportExcel',
    method: 'post',
    data,
    responseType: 'blob' // 返回格式，默认json，可选arraybuffer、blob、document、json、text、stream
  });
}

